#include "StdAfx.h"
#include "PointExt.h"

CPointExt::CPointExt(double x,double y)
{
	this->x = x;
	this->y = y;
}

CPointExt::CPointExt(void)
{
}


CPointExt::~CPointExt(void)
{
}

CPointExt CPointExt::operator + (const CPointExt &p)
{
	this->x = this->x + p.x;
	this->y = this->y + p.y;
	return *this;
}

CPointExt CPointExt::operator - (const CPointExt &p)
{
	this->x = this->x - p.x;
	this->y = this->y - p.y;
	return *this;
}
CPointExt CPointExt::operator * (const CPointExt &p)
{
	this->x = this->x * p.x;
	this->y = this->y * p.y;
	return *this;
}
CPointExt CPointExt::operator * (const double scale)
{
	this->x = this->x * scale;
	this->y = this->y * scale;
	return *this;
}

CPointExt CPointExt::operator = (const CPointExt &p)
{
	this->x = p.x;
	this->y = p.y;
	return *this;
}